package com.zhuxiang.test5;

import java.io.*;
import java.net.Socket;

/**
 * 客户端类
 */
public class Client1 {

    public static void main(String[] args) {
        Socket s = null;

        try {
            s = new Socket("127.0.0.1", 8888);
            System.out.println("连接服务器成功");
            //启动线程
            new ClientSendThread(s).start();
            new ClientReceiveThread(s).start();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
